<winmove> : Move Window
Moves specific window to defined position.
Syntax:
<winmove>("WinTitleOrHWND", Match, Xpos, Ypos)
WinTitleOrHWND
Title of the window to activate or HWND. HWND is a unique handle
Windows internally uses to identify each window. The HWND can be retrieved
by some commands (<wininfo>, <win_enumerate>) or is provided by some system
variables (_vKeybdFocusWindow_HWND, _vActiveWindow_HWND, _vActiveWindowPrev_HWND).
Match
Takes effect only if a window title is used as WinTitleOrHWND
parameter. Can be one of these values:
0 - WinTitle can be substring of a window title
1 - WinTitle must exactly match a window title
Xpos
X-coordinate of desired window position
Ypos
Y-coordinate of desired window position
Example:
<#> This macro moves "Notepad" window to position
(32,32)
<#>
<cmds>
<if_win>("Notepad","OPEN",0)
<winmove>("Notepad",0,32,32)
<else>
<msg>(100,100,"'Notepad' is not opened!","Message",1)
<endif>